package org.xb.Demo02;

/**
 * @Author
 * @Description
 * @Date created in 9:43 2023/12/12
 */
public class Client {
    public static void main(String[] args) {
        ConcreteSubject bossSubject = new ConcreteSubject();
        Observer zhangSan = new NBAObserver("zhangSan");
        Observer wangWu = new StockObserver("wangWu");
        bossSubject.addNotify(zhangSan);
        bossSubject.addNotify(wangWu);
        bossSubject.Notify("被老板抓到了");
    }
}
